home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / src / fs / fproc.h < prev    next >
Text File  |  1990-07-23  |  2KB  |  32 lines

  1. /* This is the per-process information.  A slot is reserved for each potential
  2.  * process. Thus NR_PROCS must be the same as in the kernel. It is not possible
  3.  * or even necessary to tell when a slot is free here.
  4.  */
  5.  
  6.  
  7. EXTERN struct fproc {
  8.   mode_t fp_umask;        /* mask set by umask system call */
  9.   struct inode *fp_workdir;    /* pointer to working directory's inode */
  10.   struct inode *fp_rootdir;    /* pointer to current root dir (see chroot) */
  11.   struct filp *fp_filp[OPEN_MAX];/* the file descriptor table */
  12.   uid_t fp_realuid;        /* real user id */
  13.   uid_t fp_effuid;        /* effective user id */
  14.   gid_t fp_realgid;        /* real group id */
  15.   gid_t fp_effgid;        /* effective group id */
  16.   dev_t fs_tty;            /* major/minor of controlling tty */
  17.   int fp_fd;            /* place to save fd if rd/wr can't finish */
  18.   char *fp_buffer;        /* place to save buffer if rd/wr can't finish*/
  19.   int  fp_nbytes;        /* place to save bytes if rd/wr can't finish */
  20.   char fp_suspended;        /* set to indicate process hanging */
  21.   char fp_revived;        /* set to indicate process being revived */
  22.   char fp_task;            /* which task is proc suspended on */
  23.   int fp_pid;            /* process id */
  24.   int fp_pgrp;            /* process group */
  25. } fproc[NR_PROCS];
  26.  
  27. /* Field values. */
  28. #define NOT_SUSPENDED      0    /* process is not suspended on pipe or task */
  29. #define SUSPENDED          1    /* process is suspended on pipe or task */
  30. #define NOT_REVIVING       0    /* process is not being revived */
  31. #define REVIVING           1    /* process is being revived from suspension */
  32.